<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>K吧</title>
<link rel="stylesheet" type="text/css" href="<s:property value="staticsRoot"/>/css/front-style.css"/>
<link href="http://www.7k7kjs.cn/qike_public/qike-sns.min.css" rel="stylesheet" />
<script src="http://www.7k7kjs.cn/js/lib/jquery/1.7.2/jquery-min.js"></script>
<script src="http://www.7k7kjs.cn/qike_public/qike-sns.min.js"></script>
<script>document.domain = "7k7k.com";</script>
<script type="text/javascript" src="<s:property value="staticsRoot"/>/js/jquery-1.8.3.min.js"></script>
<script>
document.domain = "7k7k.com";
 function doSearch(pageNumber, totalItem){
		if(pageNumber <= 0){
			pageNumber = 1;
		}	
		$("#toPage").val(pageNumber); 
		$("#searchForm").submit(); 
	}
</script>
</head>

<body>
<s:include value="include/header.jsp"/>
<div class="mian">
	<div class="left fl">
    	<ul class="tab_ul">
        	
        	搜索结果共<s:property value="queryDO.totalItem" />  条，总耗时 <s:property value="useTime" />     
        </ul>
  		<ul class="sel_list">
  		 
  		  <s:if test="%{ selectType=='bar' }">
  		   <s:iterator value="list" var="bar">
       	  <li>
          	<a href="<s:property value="domainRoot"/>/listThread.html?barId=<s:property value="#bar.id" />" target="_blank"><s:property value="#bar.name" escape="false"/></a>      
                作者：<a href="http://my.7k7k.com/space/<s:property value="#bar.createUserId"/>" class="f12" target="_blank"><s:property value="#bar.userName"/></a>  创建时间：<s:date name="#bar.createTime" format="yyyy-MM-dd HH:mm:ss" />
            </li>
            </s:iterator>
             </s:if>
             
             <s:if test="%{ selectType=='thread' }">
              <s:iterator value="#request.list" var="thread">
       	  <li>
          	<a href="<s:property value="domainRoot"/>/listThreadReply.html?barId=<s:property value="#thread.barId"/>&threadId=<s:property value="#thread.id"  />" target="_blank"><s:property value="#thread.title" escape="false" /></a>&nbsp;已有<span class="red"><strong><s:property value="#thread.viewCount"/></strong></span>人浏览,<span class="red"><strong><s:property value="#thread.replyCount"/></strong></span>条回复
        <p> <s:property value="#thread.content" escape="false"/>.....</p>
                作者：<a href="http://my.7k7k.com/space/<s:property value="#thread.createId"/>" class="f12" target="_blank"><s:property value="#thread.createUser.nick"/></a>  创建时间： <s:date name="#thread.createTime" format="yyyy-MM-dd HH:mm:ss" />
            </li>
            </s:iterator>
             </s:if>
        
        </ul>     
        <form action="search.html" method="post" id="searchForm">
			<input type="hidden" id ="toPage" name="page" value="<s:property value="queryDO.toPage"/>"/>
			<input type="hidden" id ="keyword" name="keyword" value="<s:property value="keyword"/>"/>
			<input type="hidden" id ="selectType" name="selectType" value="<s:property value="selectType"/>"/>
        </form>            
        <s:include value="include/pageNav.jsp"/>
    </div>
    
    <div class="clearB"></div>
</div>
<s:include value="include/foot.jsp"/>
</body>
</html>
